#ifndef _WX_WUPDLOCK_H_
#define _WX_WUPDLOCK_H_

#include "wx/window.h"

class wxWindowUpdateLocker {
  public:
    wxWindowUpdateLocker( wxWindow *win ) : m_win( win ) { win->Freeze(); }
    ~wxWindowUpdateLocker() { m_win->Thaw(); }
  private:
    wxWindow *m_win;
    DECLARE_NO_COPY_CLASS( wxWindowUpdateLocker )
};

#endif

